﻿@model IEnumerable<KRM.Core.vOrderView_OrderItemParts>

<div class="rdm-tab-scroll" style="height: 130px">
                        <table class="table table-hover table-bordered table-fix">
                            <thead>
                                <tr>
                                    <th>Select</th>
                                    <th>OrderItemPartID</th>
                                    <th>PartID</th>
                                    <th>PartName</th>
                                    <th>Quanlity</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var item in Model.OrderByDescending(p=>p.IsChecked))
                                {
                                    <tr>
                                        <td>
                                            <input type="checkbox" name="OrderItemPart@(item.OrderItemPartID)" value="@item.OrderItemPartID" @(item.IsChecked? "checked=checked" : "")/></td>
                                        <td>@item.OrderItemPartID</td>
                                        <td>@item.PartID</td>
                                        <td>@item.PartName</td>
                                        <td>@item.Qty</td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>
